export interface CTSelectOption {
  label: string
  value: string
}

const jsonBaseUrl = import.meta.env.VITE_JSON_API_BASE_URL

const api: ApiConfig = {
  typeSelectByCode: {
    method: 'GET',
    url: '/collection/baseCollectClassificationConfig/listOptionsByParentCode'
  },
  tagOptions: {
    method: 'GET',
    url: 'collection/collection/baseTag/listOptions'
  },
  saveOrUpdate: {
    method: 'POST',
    url: '/collection/clue/saveOrUpdateItem'
  },
  info: {
    method: 'GET',
    url: '/collection/clueCollectingItems/infoById/:id'
  },
  jsonContent: {
    method: 'GET',
    url: '/content',
    baseURL: jsonBaseUrl
  }
}

export default api
